import service from '@/utils/request'

// 查询列表
export const queryBaseListApi = (dataForm: any) => {
	return service.get('/categoryAndLabel/list/category/' + dataForm)
}
export const baseInsertApi = (dataForm: any) => {
	return service.post('/categoryAndLabel/insert/category', dataForm)
}
export const baseUpdateApi = (dataForm: any) => {
	return service.post('/categoryAndLabel/update/category', dataForm)
}
export const baseDelApi = (dataForm: any) => {
	return service.get('/categoryAndLabel/delete/category',  {params: dataForm})
}

// 总的标签字典表
export const categoryAllApi = (dataForm: any) => {
	return service.get('/categoryAndLabel/listLabelType',  {params: dataForm})
}

// 其他标签的列表
export const categoryListApi = (dataForm: any) => {
	return service.get('/categoryAndLabel/list/label/' + dataForm)
}
// 新增
export const categoryInsertApi = (dataForm: any) => {
	return service.post('/categoryAndLabel/insert/label' , dataForm)
}

// 更新
export const categoryUpdateApi = (dataForm: any) => {
	return service.post('/categoryAndLabel/update/label' , dataForm)
}
// 删除
export const categoryDelApi = (dataForm: any) => {
	return service.get('/categoryAndLabel/delete/label',  {params: dataForm})
}